// 面经相关的请求
import request from '@/utils/request'

// 1. 分页获取面经列表数据
export const ArticleListAPI = (params) => {
  return request.get('/admin/interview/query',{params})
}

// 2. 添加面经
export const addArticleAPI = (data) => {
  return request.post('/admin/interview/create',data)
}

// 3. 删除面经
export const removeArticleAPI = (id) => {
  return request.delete('/admin/interview/remove',{data:{id}})
}

// 4.获取单个面经详情
export const showArticleAPI = (params) => {
  return request.get('/admin/interview/show',{params})
}

// 5. 修改个人面经详情
export const updateArticleAPI = (data) => {
  return request.put('/admin/interview/update',data)
}